package cn.bluemobi.platform.controller.area;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.bluemobi.platform.core.controller.PlatformBaseController;
import cn.bluemobi.platform.service.AreaService;

/**
 * Description: <br/>
 * Date: 2016年12月30日 上午10:32:23 <br/>
 * 
 * @author lvxh
 * @version
 * @see
 */
@Controller
@RequestMapping("/admin/area")
public class AreaController extends PlatformBaseController {
    @Autowired
    private AreaService areaService;

    @RequestMapping("/findProvinces")
    @ResponseBody
    public List<Map<String, Object>> findProvinces(@RequestParam Map<String, Object> params) {
        return areaService.findProvinces(params);
    }

    @RequestMapping("/findCities")
    @ResponseBody
    public List<Map<String, Object>> findCities(@RequestParam Map<String, Object> params) {
        return areaService.findCities(params);
    }

    @RequestMapping("/findAreas")
    @ResponseBody
    public List<Map<String, Object>> findAreas(@RequestParam Map<String, Object> params) {
        return areaService.findAreas(params);
    }

}
